﻿@model IEnumerable<FILSTARTUPS_CMS.Models.PostGrid>
@{
    ViewBag.Title = "Index";
    
}
@section Pagename
{
<h2>Index</h2>
}

<div class="row">
    <div class="span4">
    <h2>Statistics</h2>

    Total Post:@Model.Count()
    <br />
    Number of Drafts: @ViewBag.Drafts
    <br />
    Number of Posting: @ViewBag.Posting
    </div>

    <div class="span10">
        @using (Ajax.BeginForm("Filter", "Home", new AjaxOptions
            {
                HttpMethod="GET",
                InsertionMode=InsertionMode.Replace,
                UpdateTargetId = "post_user",
            }))
        {
            <h2>Filter</h2>
            @Html.DropDownList("routing", new SelectList(ViewData["routing"] as System.Collections.IEnumerable,
                                                                                       "routingidPK", "routingname"))
            <input type="submit" value="Filter" />
        }
        <div id="post_user">
            @Html.Partial("_PostUser")
        </div>
    </div>

</div>
